package com.bflow.api.bo;

import com.bflow.commons.bean.QueryParam;

import java.io.Serializable;

/**
 * 功能：BflowRunInstance 流程实例-查询参数对象
 * 作者：haowen
 * 日期：2018-12-13
 * 版权所有：广东联结网络技术有限公司版权所有(C) 2018
 */
public class BflowRunInstanceQueryParam extends QueryParam implements Serializable {

	private static final long serialVersionUID = 8213176791905299748L;
	
	private BflowRunInstanceBo bflowRunInstance;

	public BflowRunInstanceQueryParam() {
	}

	public BflowRunInstanceQueryParam(BflowRunInstanceBo bflowRunInstance) {
		setBflowRunInstance(bflowRunInstance);
	}

	public BflowRunInstanceBo getBflowRunInstance() {
		return bflowRunInstance;
	}

	public BflowRunInstanceBo getBoIfNullAndNew() {
		if(bflowRunInstance == null)
			bflowRunInstance = new BflowRunInstanceBo();
		return bflowRunInstance;
	}

	public void setBflowRunInstance(BflowRunInstanceBo bflowRunInstance) {
		super.setParamBean(bflowRunInstance);
		this.bflowRunInstance = bflowRunInstance;
	}
}